<template>
  <div>
       <mc-rate v-model="userName"></mc-rate>
       <el-button @click="print">打印</el-button>
       <el-button @click="change">改变</el-button>
  </div>
</template>

<script>
import McRate from './components/McRate'
export default {
    data(){
      return {
        userName: null,
      }
    },
    components:{
      McRate,
    },
    methods:{
        print(){
            console.log(this.userName)
        },
        change(){
            this.userName = 2;
        }
    }
}
</script>

<style>

</style>
